package com.thinkTank.oa.entity;

import java.io.Serializable;
import java.util.List;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/***
 * 
 * @author dq
 * @date 2018-07-19
 * 资源类
 */
public class Permission  implements Serializable{

	private static final long serialVersionUID = 1L;
	private Integer pid;
	private Integer parentId;
    
	private Permission par;
	
	@NotNull(message = "资源名称不能为空")
	@NotEmpty(message="资源名称不能为空")
    private String name;
    
	@NotNull(message = "资源路径不能为空")
	@NotEmpty(message="资源路径不能为空")
    private String url;
    
	
	private List<Permission> chilrd;
	
    public List<Permission> getChilrd() {
		return chilrd;
	}

	public void setChilrd(List<Permission> chilrd) {
		this.chilrd = chilrd;
	}

	private String description;

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}



	public Permission getPar() {
		return par;
	}

	public void setPar(Permission par) {
		this.par = par;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
    
}
